﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/homepage.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Nhom14_HTTTHD_BuyMe._Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>WebsiteBroker - Websites For Sale. Buy and sell websites and domain names!
    </title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TopBanner" runat="server">
    <ul>
        <li id="buy" onmouseover="this.className=&#39;buy_hover&#39;;" onmouseout="this.className=&#39;&#39;;">
            <h1>
                <a href="#">Buy</a></h1>
            <div class="boxclear">
            </div>
            <a href="websitecategory.aspx">
                <div class="arrow">
                </div>
                Website Directory</a>
            <div class="boxclear">
            </div>
            <a href="domaincategory.aspx">
                <div class="arrow">
                </div>
                Domain Name Directory</a> </li>
        <li id="sell" onmouseover="this.className=&#39;sell_hover&#39;;" onmouseout="this.className=&#39;&#39;;"
            class="">
            <h1>
                <a href="">Sell</a></h1>
            <div class="boxclear">
            </div>
            <div class="arrow">
            </div>
            <a href="sell-website.aspx">Sell your website </a>or <a href="sell-domain.aspx">domain name</a>. </li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="outer">
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
                </asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            SelectedIndex="0">
            <Tabs>
                <telerik:RadTab Text="Premiere">
                </telerik:RadTab>
                <telerik:RadTab Text="Regular">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
            <telerik:RadPageView ID="RadPageView1" runat="server">
                <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSourceTinhPhi" AllowPaging="True"
                    runat="server" AllowSorting="True" CellSpacing="0" GridLines="None">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView TableLayout="Fixed">
                        <ItemTemplate>
                            <table width="100%" cellpadding="10" cellspacing="0" border="0">
                                <tr class="hilite2">
                                    <td class="thumb">
                                        <a href='<%# "details.aspx?id="+ Eval("id") %>'>
                                            <img src='<%# Eval("image") %>' width="100" height="80" class="thumb">
                                        </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td class="details grid">
                                            <span class="date">11/07/11</span><br>
                                            <a href='<%# "details.aspx?id="+ Eval("id") %>' class="project">
                                                <%# Eval("site_name")%>
                                            </a><span class="icon_premiere"></span>
                                            <br>
                                            <br>
                                            Started:
                                            <%# Eval("date_started")%>, Income:
                                            <%# "$" + Eval("income")%>
                                            per month, Page Views:
                                            <%# Eval("page_views")%>
                                            (daily)<br>
                                            Listed in:
                                            <%# Eval("name")%>
                                        </td>
                                        <td width="90" class="price grid">
                                            <%# "$" +Eval("asking_price")%>
                                        </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn " Visible="True">
                        </ExpandCollapseColumn>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn ">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings>
                        <Scrolling AllowScroll="false" UseStaticHeaders="true" />
                    </ClientSettings>
                    <FilterMenu EnableImageSprites="False">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </HeaderContextMenu>
                </telerik:RadGrid>
                <asp:SqlDataSource ID="SqlDataSourceTinhPhi" runat="server" ConnectionString="<%$ ConnectionStrings:websitebrokenConnectionString %>"
                    SelectCommand="SELECT website.id, website.image, website.site_name, website.site_url, website.date_started, website.page_views, website.income, account.username, website_status.name,website.asking_price FROM website INNER JOIN website_status ON website.id_website_status = website_status.id INNER JOIN account ON website.id_account = account.id WHERE (website.id_type = 1) AND (website.status = 1)">
                </asp:SqlDataSource>
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView2" runat="server" CssClass="pageViewEducation">
                <telerik:RadGrid ID="RadGrid2" DataSourceID="SqlDataSourceCoPhi" AllowPaging="True"
                    runat="server" AllowSorting="True" CellSpacing="0" GridLines="None">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView TableLayout="Fixed">
                        <ItemTemplate>
                            <table width="100%" cellpadding="10" cellspacing="0" border="0">
                                <tr class="hilite2">
                                    <td class="thumb">
                                        <a href='<%# "details.aspx?id="+ Eval("id") %>'>
                                            <img src='<%# Eval("image") %>' width="100" height="80" class="thumb">
                                        </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td class="details grid">
                                            <span class="date">11/07/11</span><br>
                                            <a href='<%# "details.aspx?id="+ Eval("id") %>' class="project">
                                                <%# Eval("site_name")%>
                                            </a><span class="icon_premiere"></span>
                                            <br>
                                            <br>
                                            Started:
                                            <%# Eval("date_started")%>, Income:
                                            <%# "$" + Eval("income")%>
                                            per month, Page Views:
                                            <%# Eval("page_views")%>
                                            (daily)<br>
                                            Listed in:
                                            <%# Eval("name")%>
                                        </td>
                                        <td width="90" class="price grid">
                                            <%# "$" +Eval("asking_price")%>
                                        </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn " Visible="True">
                        </ExpandCollapseColumn>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn ">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings>
                        <Scrolling AllowScroll="false" UseStaticHeaders="true" />
                    </ClientSettings>
                    <FilterMenu EnableImageSprites="False">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </HeaderContextMenu>
                </telerik:RadGrid>
                <asp:SqlDataSource ID="SqlDataSourceCoPhi" runat="server" ConnectionString="<%$ ConnectionStrings:websitebrokenConnectionString %>"
                    SelectCommand="SELECT website.id,website.image, website.site_name, website.site_url, website.date_started, website.page_views, website.income, account.username, website_status.name,website.asking_price FROM website INNER JOIN website_status ON website.id_website_status = website_status.id INNER JOIN account ON website.id_account = account.id WHERE (website.id_type = 2) AND (website.status = 1)">
                </asp:SqlDataSource>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
    </div>
    <div class="float_r">
        <a href="http://websitebroker.com/websites-for-sale.html" class="button_directory"
            style="margin: 8px 0 0 0;">Go to complete directory</a></div>
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SidebarContent" runat="server">

    <div class="account">
        <h2>
            My Account</h2>
        <ul>
            <li><a href="myhomepage.aspx">My Websites-Domain</a></li>
            <li><a href="mybid.aspx">My Bibs</a></li>
            <li><a href="mytransaction.aspx">My Transaction</a></li>
            <li><a href="mymessage.aspx">My Messages</a></li>
        </ul>
    </div>

</asp:Content>
